package br.fagoc.easyds.exception;

public class LimiteExcedidoException extends Exception{

	private static final long serialVersionUID = -4557307292476686498L;
	
	private double valor;
	private double limiteInferior;
	private double limiteSuperior;
	
	public LimiteExcedidoException(double valor, double limiteInferior, double limiteSuperior){
		this.valor = valor;
		this.limiteInferior = limiteInferior;
		this.limiteSuperior = limiteSuperior;
	}
	
	@Override
	public void printStackTrace() {
		super.printStackTrace();
		System.err.println("Valor passado: " + valor + "\nLimite: " + limiteInferior + " - " + limiteSuperior);
	}

	public double getValor() {
		return valor;
	}
	public double getLimiteInferior() {
		return limiteInferior;
	}
	public double getLimiteSuperior() {
		return limiteSuperior;
	}
}
